package com.cljh.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Comment {

    private Integer id;
    private String content;
    private Integer userId;
    private Integer adminId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    private Integer pid;//父节点评论id
    private Integer pUserId;//父节点userid
    private String  pNickname;//父节点用户名字
    private Integer originId;
    private Integer articleId;

    private  String name;
    private String img;
    private String nickname;
    private String aimg;
    private List<Comment> children;
}
